import { VuexModule, Module, Mutation, Action } from "vuex-module-decorators";

@Module({
  namespaced: true,
})
class Foo extends VuexModule {
  public text: string = "store text";
  @Mutation
  setText(newText: string) {
    this.text = newText;
  }
  get textUpper(): string {
    return this.text.toUpperCase();
  }
}

export default Foo;
